package com.test.crawler.utils;

import lombok.Data;

import java.util.Collection;
import java.util.List;

@Data
public class MallProduct extends AbstractCrawlerEntry {
    @ExtractBy(value = "body > div:nth-child(6) > div.layout.layout-col.w1200 > div:nth-child(4) > div > div.w-dtl-prem > div.prem-proname.clearfix > h1")
    private String title;
    @ExtractBy(value = "#saleprice_value")
    private String price;
    @ExtractBy(value = "#original_price")
    private String originPrice;
    private String stock;
    @ExtractBy(value = "#wrap990list8 >ul>p", click = true, clickCss = "#sprg_menu > ul > li.sprg_menu_li2")
    private String instructions;
    @ExtractBy(value = "#minPicScroll > div > ul > li > img", multi = true, attr = "src")
    private List<String> pics;
    @ExtractBy(value = "#vh-video", multi = true, attr = "src")
    private List<String> videos;
    @ExtractBy(value = "div.prem-dtl-infomation > div.dtl-inf-top > div:nth-child(1) > div.dtl-inf-r")
    private String commonName;
    private List<MallSku> skuInfos;
    private Collection<SkuCustomAttr> customAttr;

    private List<String> instructionsList;
}
